#ifndef _XDATABOOTCONF_H
#define _XDATABOOTCONF_H

#include <xinifile.h>

typedef struct ST_BOOT_CONF
{
	int		volume;
	int		lcdUpDown;
	int		lcdLeftRight;
	int		layout;
	int		plu;
	std::string font;
	int		fontSize;
	std::string wmFont;    //weight measure font
	int		wmFontSize;
	std::string	qFont;
	int		qFontSize;
	std::string nameFont;
	int     nameFontSize;
	int     timeout;
	int     screenMode;
	std::string discountFontFamily;
	int     discountFontSize;
	int     discountStartX;
	int     discountStartY;
	int     discountWidth;
	int    	discountHeigh;
}STBootConf;


class XDataBootConf
{
public:
	XDataBootConf();
	~XDataBootConf();

	const STBootConf& getBootConf(void) const;
	int   getLayout() const;
	int   getWmFontSize() const;
	std::string getWmFont() const;
	int   getTitleFontSize() const;
	std::string getTitleFont() const;
	int   getTimeout() const;
	int   screenMode() const;  

protected:
	void DebugOutput(void);
	void clearStBootConf(void);

private:
	XIniFile	m_inifile;
	STBootConf	m_bootConf;
};

#endif
